export const rules = {
  userName: [
    {
      require: true,
      message: '请输入账号',
      trigger: 'blur'
    },
    {
      pattern: /^[a-zA-Z0-9]{1,10}$/,
      message: '用户名必须是5~10个大小写字母或者数字~',
      trigger: 'blur'
    }
  ],
  password: [
    {
      require: true,
      message: '请输入密码',
      trigger: 'blur'
    },
    {
      pattern: /^[a-zA-Z0-9]{6,}$/,
      message: '密码必须是7位数以上的大小写字母或者数字~',
      trigger: 'blur'
    }
  ],
  number: [
    {
      require: true,
      message: '请输入手机号',
      trigger: 'blur'
    },
    {
      pattern: /^[0-9]{11}$/,
      message: '手机号必须是11位的数字~',
      trigger: 'blur'
    }
  ],
  verifyCode: [
    {
      require: true,
      message: '请输入验证码',
      trigger: 'blur'
    },
    {
      pattern: /^[0-9]{6}$/,
      message: '验证码必须为6位数字~',
      trigger: 'blur'
    }
  ]
}
